using System;
using System.Collections.Generic;
using System.Text;

namespace Pay.Data {
	/// <summary>
	/// 订单明细：mc_OrderItem
	/// </summary>
	public partial class OrderItem {
		public OrderItem() {
		}

		/// <summary>
		/// 订单明细id
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 订单id
		/// </summary>
		public long OrderId { get; set; }
		/// <summary>
		/// 产品id
		/// </summary>
		public long ProductId { get; set; }
        /// <summary>
        ///集市商品id
        /// </summary>
        public long BazaarProductId { get; set; }
		/// <summary>
		/// 购买数量
		/// </summary>
		public int Quantity { get; set; }
		/// <summary>
		/// 单价
		/// </summary>
		public decimal UnitPrice { get; set; }
		/// <summary>
		/// 商品名称
		/// </summary>
		public string ProductName { get; set; }
		/// <summary>
		/// 缩略图
		/// </summary>
		public string ThumbnailsUrl { get; set; }
		/// <summary>
		/// 市场价格
		/// </summary>
		public decimal MarketPrice { get; set; }
		/// <summary>
		/// 扩展内容,是字典JSON
		/// </summary>
		public string Body { get; set; }
        /// <summary>
        /// 分销商Id
        /// </summary>
        public long? DistributionId { get; set; }
        /// <summary>
        /// 规格id
        /// </summary>
        public long? SkuId { get; set; }
        /// <summary>
        /// 规格路径
        /// </summary>
        public string SkuPath { get; set; }
		/// <summary>
		/// 规格名称
		/// </summary>
		public string SkuName { get; set; }
		/// <summary>
		/// 赠送积分
		/// </summary>
		public int Points { get; set; }
		/// <summary>
		/// 是否开启三级分销
		/// </summary>
		public bool IsOpen { get; set; }
		/// <summary>
		/// 抵扣积分
		/// </summary>
		public int Integral { get; set; }
        /// <summary>
        /// 红砖
        /// </summary>
        public decimal RedDrill { get; set; }
        /// <summary>
        /// 是否纯现金支付
        /// </summary>
        public bool IsCashPay { get; set; }
        /// <summary>
        /// 积分抵扣比例
        /// </summary>
        public decimal IntegralRate { get; set; }
        public double? GrossWeight { get; set; }
        public double? LegalWeight { get; set; }
        /// <summary>
        /// 产品活动Id
        /// </summary>
        public long? ProductActivityId { get; set; }
        /// <summary>
        /// 订单明细来源类型：1海淘乐，2候鸟 6 集市
        /// </summary>
        public int? OrderItemType { get; set; }
        /// <summary>
        /// 活动类型 0：无，1：398创客活动，2：限时购活动，3：红钻+现金，4：红钻兑换
        /// </summary>
        public int ActiveType { get; set; }
        /// <summary>
        /// 订单表：mc_Order
        /// </summary>
        public virtual Order Order { get; set; }
		/// <summary>
		/// 产品
		/// </summary>
		public virtual Product Product { get; set; }
        /// <summary>
        /// 集市商品
        /// </summary>
        public virtual TokenBazaarProduct TokenBazaarProduct { get; set; }

    }
}